package com.clei.dto.file;

import java.io.File;

/**
 * 文件树节点
 *
 * @author Y
 * @date 2024-01-29
 **/
public class FileNode {
    /**
     * file
     */
    private final File file;

    /**
     * 父文件索引位置 -1~n
     */
    private final int parentIndex;

    /**
     * 层级 0~n
     */
    private final int layer;


    public FileNode(File file, int parentIndex, int layer) {
        this.file = file;
        this.parentIndex = parentIndex;
        this.layer = layer;
    }

    public File getFile() {
        return file;
    }

    public int getParentIndex() {
        return parentIndex;
    }

    public int getLayer() {
        return layer;
    }
}
